package Test;

public class TEST_1
{
  static final int num=15;//设置常量15
  static int var =1 ;//设置变量1
  public  static void main(String[] args)
  {
	Integer n=11;//定义变量n
	char ch='z';//定义变量ch'z'
	System.out.println(var);
	System.out.println("数字是"+num);
	System.out.println(n);
	System.out.println(ch);
	System.out.println();
 //输出
	int sum =0 ;
	for (int i = 1; i <= 5; i++)
	 {
		sum = sum + i;//1加到5
		System.out.println("i=" + i + "    sum=" + sum);//输出
	 }
    System.out.println((sum = sum + 2)+"      " + sum++);// 变量自加的两种情况，前加和后加；
    System.out.println(sum + "      "+ (++sum));
  }

}
